#include "stdafx.h"
#include "Utility.h"
#include <iostream>

using namespace std;
Utility::Utility(void)
{
}


Utility::~Utility(void)
{
}

bool Utility::IsPrime(int value)
{
	bool prime=true;
	for (int i = 2; i <= value/i; i++)
	{
		int factor=value/i;
		if (factor*i==value)
		{
			cout<<"factor found: "<<factor<<endl;
			prime=false;
			break;
		}
	}
	return prime;

}

bool Utility::Is2MorePrime(int value)
{
	return IsPrime(value+2);
}